import request from '@/utils/request'

// 查询最新消息列表
export function listNewMess(query) {
  return request({
    url: '/consult/newMess/list',
    method: 'get',
    params: query
  })
}

// 查询最新消息详细
export function getNewMess(id) {
  return request({
    url: '/consult/newMess/' + id,
    method: 'get'
  })
}

// 新增最新消息
export function addNewMess(data) {
  return request({
    url: '/consult/newMess',
    method: 'post',
    data: data
  })
}

// 修改最新消息
export function updateNewMess(data) {
  return request({
    url: '/consult/newMess',
    method: 'put',
    data: data
  })
}

// 删除最新消息
export function delNewMess(id) {
  return request({
    url: '/consult/newMess/' + id,
    method: 'delete'
  })
}
